<div class="portlet light bordered">
	<div class="portlet-title">
        <div class="caption font-dark">
            <i class="fa fa-cog font-dark"></i>
            <span class="caption-subject bold">货品 > 货品属性信息 > 类型管理 > 新增货品类型 </span>
        </div>
    </div>
    <div class="portlet-body form">
    	<form role="form" action="/attrGroup/add" class="form-horizontal" method="post">
        	<div class="form-body">
                 <div class="form-group">
                     <label class="control-label col-md-2">类型名称：</label>
                     <div class="col-md-4">
                         <input type="text" class="form-control" name="name" maxlength="40">
                     </div>
                 </div>
                 
                 <div class="form-group">
                     <label class="control-label col-md-2">关联规格：</label>
                     <div class="col-md-5">
                         <select name="specsIds" class="form-control attr-select" multiple>
								#foreach($attr in $!attrs)
									<option value="$!attr.id" data-name="$!attr.name">$!attr.name</option>
								#end
							</select>
                     </div>
                 </div>
                <div class="form-group">
                     <label class="control-label col-md-2">关联参数：</label>
                      <div class="col-md-4" style="vertical-align: middle;margin-top: 7px;">
                     	 <input type="radio"  name="teamType" value="false" checked>无参数组
<!--                      	 <input type="radio"  name="teamType" value="true" >有参数组 -->
                     	 <a class="btn green btn-outline btn-sm add-param-group hidden"><i class="fa fa-plus"></i>添加参数组</a>
                     </div>
                 </div>
                
                 	<div class="paraminfo_div">
	                 <div class="form-group group-params">
	                     <label class="control-label col-md-2">参数名：</label>
	                     <div class="col-md-2">
	                         <input type="text" class="form-control" name="params[0].paramName">
                         	 <nobr>必填：<input type="checkbox" name="params[0].paramMust">&nbsp;&nbsp;&nbsp;&nbsp;是否筛选条件：<input type="checkbox" value="1" name="params[0].paramSearch">&nbsp;&nbsp;&nbsp;&nbsp;数据类型：<select name="params[0].paramType" class="params-enum"><option value="text">文本</option><option value="num">数字</option><option value="date">日期</option><option value="time">时间</option><option value="enum">枚举</option></select></nobr>
	                     </div>
	                     &nbsp;<a class="btn green btn-outline btn-sm add-param"><i class="fa fa-plus"></i>添加参数</a>
	                 </div>
                 	</div>
               
                 <div class="form-group">
                     <label class="control-label col-md-2">状态：</label>
                     <div class="col-md-4" style="vertical-align: middle;margin-top: 7px;">
                         <input type="radio"  name="status" value="true" checked >启用
                     	 <input type="radio"  name="status" value="false">禁用
                     </div>
                 </div>
            </div>
            <div class="form-actions right">
				<a thref="/attrGroup/list?$!queryReturn" class="btn green ajax-post"><i class="fa fa-check"></i> 提交</a>
				<a href="/attrGroup/list?$!queryReturn" class="btn btn-outline grey-salsa ajaxify">返回</a>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="/assets/scripts/views-attrGroup.js"></script>

